package com.travel.feign;

import com.travel.dto.CarOrderDto;
import com.travel.dto.RentCarOrderDto;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.HashMap;

//调用order的服务
@FeignClient("order-service")
public interface CarOrderFeign {
    @GetMapping("/order/createOrder")
    public String createOrder();

    @PostMapping("/rentCarOrder/generateOrder")
    @ApiOperation(value = "生成订单",notes = "生成订单")
    public HashMap<String, String> generateOrder(RentCarOrderDto rentCarOrderDto);
}
